Learn R Programming

Rfast (version 1.5)

Design Matrix : Design Matrix

Description

Design Matrix.

Usage

design_matrix(x)

Arguments

x
A character vector

Value

Returns the same matrix with model.matrix .

Details

This function implements the R's "model.matrix" function.

See Also

model.matrix

Examples

Run this code
x1 <- iris[, 5]
x <- as.character(x1)
a <- design_matrix(x)

Run the code above in your browser using DataLab